package com.skivingcloud.admin.sys.service;

import com.mybatisflex.core.service.IService;
import com.skivingcloud.admin.sys.entity.SysCaptcha;

import java.awt.image.BufferedImage;

/**
 *  服务层。
 *
 * @author skivingcloud
 * @since 2023-08-28
 */
public interface SysCaptchaService extends IService<SysCaptcha> {
    /**
     * 获取图片验证码
     * @param uuid uuid
     */
    BufferedImage getCaptcha(String uuid) throws Exception;
    
    /**
     * 验证码效验
     * @param uuid  uuid
     * @param code  验证码
     * @return  true：成功  false：失败
     */
    boolean validate(String uuid, String code);
}
